<template>
  <el-table :data="detail" border style="width: 100%">
    <el-table-column label="编号" type="index" width="60" />
    <el-table-column prop="entName" label="公司名称" show-overflow-tooltip />
    <el-table-column prop="name" label="负责人" show-overflow-tooltip>
      <template #default="{ row }">
        <div class="userinfo">
          <span>{{ row.legalPerson }}</span>
        </div>
      </template>
    </el-table-column>
    <el-table-column prop="startDate" label="成立日期" />
    <el-table-column prop="openStatus" label="状态" />
  </el-table>
</template>

<script setup lang="ts">
const props = defineProps({
  detail: Array
})
</script>

<style lang="scss" scoped>
.userinfo {
  display: flex;
  justify-content: space-between;
}
</style>
